package com.hand.todo.api.controller.v1;

import java.util.Map;
import org.hzero.boot.scheduler.infra.annotation.JobHandler;
import org.hzero.boot.scheduler.infra.enums.ReturnT;
import org.hzero.boot.scheduler.infra.handler.IJobHandler;
import org.hzero.boot.scheduler.infra.tool.SchedulerTool;
/**
 * 示例任务
 *
 * @author hzero@hand-china.com 2021/04/13 09:28
 */
@JobHandler("demo")
public class DemoJob implements IJobHandler {
    @Override
    public ReturnT execute(Map<String, String> map, SchedulerTool tool) {
        tool.info("Hello World!");
        return ReturnT.SUCCESS;
    }
}